package br.com.abril.task;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import br.com.abril.job.AbstractTask;

public class DownloadAndProcessAllTask  extends AbstractTask  {
	
	private static final Logger logger = Logger.getLogger(BookingTask.class);
	
	private List<AbstractTask> tasks;
	
	public DownloadAndProcessAllTask() {
		tasks = new ArrayList<AbstractTask>();
		init();
	}
	
	public void init() {
		tasks.add ( new PurgeContentTask() );
		tasks.add ( new BookingTask() );
		tasks.add ( new ExecutiveBookingTask() );
		tasks.add ( new PrevisionTask() );
		tasks.add ( new ExecutivePrevisionTask() );
	}
	
	@Override
	public void execute() {

		for( AbstractTask task : tasks ) {
			task.execute();
		}
		
	}
	
	
	

}
